import styled from 'styled-components';

export const LiveWrapper = styled.div`
  width: 100%;
  position: relative;
`

export const HeaderWrapper = styled.div`
  width: 100%;
  background: #303030;
  height: 44px;
  line-height: 44px;
`

export const HeaderLeft = styled.div`
  float: left;
  color: #fff;
  i {
    margin: 0 10px;
    cursor: pointer;
  }
  span {
    font-size: 14px;
    margin: 0 24px 0 16px;
  } 
`

export const LiveState = styled.div`
  display: inline-block;
  width: 68px;
  height: 26px;
  border: 1px solid #8bca31;
  border-radius: 5px;
  color: #8bca31;
  line-height: 26px;
  font-size: 14px;
  text-align: center; 
`

export const HeaderRight = styled.div`
  float: right;
  display: flex;
`

export const AvatarWrapper = styled.div`
  color: #fff;
  font-size: 14px;
  margin-right: 260px;
  img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 14px;
  }
`

export const InfoWrapper = styled.div`
  color: #fff;
  font-size: 14px;
  i{
    margin-right: 10px;
  }
  span {
    margin-right: 24px;
  }
`

export const CourseWrapper = styled.div`
  width: 100%;
  .changeSize{
    position: absolute;
    width: 20px;
    height: 100%;
    background: #666;
    z-index: 999;
    left: 0;
    top: 0;
    color: #fff;
    vertical-align: middle;
    height: 100%;
  }

`

export const ListWrapper = styled.div`
  width: 22%;
  float: right;
  padding-right: 10px;
  padding-left: 10px;
  box-sizing: border-box;
  position: relative;
  a {
    float: right;
    font-size: 14px;
    color: #333;
    margin-top: 6px;
  }
  .change-status {
    position: absolute;
    bottom: 0px;
    left: 0px;
    cursor: pointer;
    width: 66px;
    height: 30px;
    border-radius: 0 4px 4px 0;
    background-color: #999;
    color: #fff;
    text-align: center;
    line-height: 30px;
  }
`

export const ChatWrapper = styled.div`
  background: #1f1f24;
  height: 614px;
  margin-top: 30px;
  position: relative;
  p {
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-bottom: 2px solid #8bca31;
    color: #8bca31;
  }
`

export const ChatList = styled.div`
  list-style: none;
  height: 536px;
  overflow-y: auto;
  padding: 20px;
  li {
    color: #fff;
    line-height: 36px;
    font-size: 16px;
    p {
      border: 0px solid red;
      text-align: left;
      width: 100%;
      word-wrap: break-word;
      word-break: break-all;
      height: auto;
    }
  }
`

export const EnterWrapper = styled.div`
  display: flex;
  position: absolute;
  bottom: 12px;
  width: 80%;
  margin-left: 10%;
  input {
    background: #1f1f24;
    color: #999;
  }
  button {
    border-radius: 0 4px 4px 0;
    position:relative;
    left: -2px;
  }
`

export const ContentWrapper = styled.div`
  width: 100%;
  padding-top: 10px;
  display: flex;
`

export const RateWrapper = styled.div`
  width: 400px;
`

export const ContentTitle = styled.p`
  border-left: 3px solid #8bca31;
  font-size: 18px;
  height: 26px;
  line-height: 26px;
  margin-left: 10px;
  padding-left: 10px;
  font-weight: bold; 
`

export const Content = styled.div`
  margin-left: 20px;
  margin-top: 18px;
  margin-bottom: 18px;
  p {
    line-height: 26px;
    margin-bottom: 6px;
  }
`

export const QuestionWrapper = styled.div`
  width: calc(100% - 800px); 
`

export const QuestionList = styled.div`
  .reply-btn {
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
    line-height: 36px;
    .reply {
      float: right;
      margin-right: 30px;
    }
  }
`

export const QuestionLayout = styled.div`
  .avatar {
    position: absolute;
    width: 40px;
    height: 40px;
  }
`

export const CommentWrapper = styled.div`
  margin-left: 52px;
  p {
    font-size: 14px;
    color: #333;
  }
  .time {
    font-size: 12px;
    color: #999;
    line-height: 10px;
    a {
      float: right;
      margin-right: 30px;
    }
  }
  .content {
    font-size: 16px;
  }
  .comment {
    color: #333;
    font-weight: bold;
    span {
      color: #8bca31;
      font-size: normal;
    }
  }
  .response {
    background: #eaeaec;
    padding: 6px 10px;
    li {
      padding-bottom: 4px;
      border-bottom: 1px solid #ccc;
      .response-com {
        color: #333;
        span {
          color: #8bca31;
          font-size: normal;
        }
      }
    }
  }

`

export const CommentList = styled.ul`
  background: #f2f2f5;
  padding: 10px 10px 10px 0 ;
`
// 简介

export const AbstractWrapper = styled.div`
  width: 400px;
`


export const VideoListWrapper = styled.div`
  width: ${(props)=> props.vw};
  float: left;
  background-color: #333;
  height: 858px;
  overflow-y: auto;
  padding-top: 5px;
  padding-left: 20px;
  position: relative;
  .changeSize {
    position: absolute;
    left: 0;
  }
  ul {
    width: 99%;
    height: 100%;
    li {
      position: relative;
      margin-bottom: 8px;
      margin-right: 10px;
      margin-left: 20px;
      img {
        width: 100%;
      }
      span {
        position: absolute;
        right: 5px;
        bottom: 5px;
        color: #fff;
        background: #333;
        padding: 1px 5px;
      }
    }
  }
`
 
